package pattern.structrual.decorator.v1;

/**
 * @Author Gavin
 * @date 2020.07.16 13:40
 */
public class test {
    public static void main(String[] args) {
        Battercake battercake = new Battercake();
        System.out.println(battercake.desc());
        System.out.println(battercake.cost());
        BattercakeWithEgg battercakeWithEgg = new BattercakeWithEgg();
        System.out.println(battercakeWithEgg.cost());
        System.out.println(battercakeWithEgg.desc());
        BattercakeWithSausage battercakeWithSausage = new BattercakeWithSausage();
        System.out.println(battercakeWithSausage.desc());
        System.out.println(battercakeWithSausage.cost());
    }
}
